package com.wwmz.pattern.singleton.hungry;

/**
 * Created by wumz on 2020/9/16 16:29
 */
public class HungrySingleton {

    //先静态、后动态
    //先属性、后方法
    //先上后下
    private static final HungrySingleton instance = new HungrySingleton();

    private HungrySingleton() {
    }

    public static HungrySingleton getInstance() {
        return instance;
    }
}
